function pageReady() {
    layui.use(['element', 'form'], function () {
        var element = layui.element;
        var form = layui.form;
        //创建对象
        var modelEdit = new ModelEdit();
        //初始化
        modelEdit.init();

    });


}

var ModelEdit = function () {
    //本身
    var $this = this;
    //初始化
    this.init = function () {
        //表单提交
        layuiFunciton.formSubmit({
            filterName: 'editSubmit',  //监听提交按钮   例如：filterName： updateSubmit   <button class="layui-btn" lay-submit  lay-filter="updateSubmit" >保存</button>
            url: '/ngu/sys/updateSysUser',//提交路径
            formId: 'editForm',//form表单ID
            returnData: true,
            success: function (data) {
                if (data.data == 1) {
                    layuiFunciton.success("修改成功！", function () {
                        layuiFunciton.closeOpen();
                    });
                } else {
                    layuiFunciton.error("修改失败！");
                }
            }
        });
    };
};